package lm.concurrency.day5.CAS;

/**
 * @Auther: Min.Liu
 * @Description:
 * @Date: Created in 11:10 2024/11/7
 */
public class DemoTest {
    public static void main(String[] args) {
        //线程不安全的
        //Account.demo(new AccountUnsafe(10000));
        //有锁思路解决
        //Account.demo(new AccountSafeOne(10000));
        //无锁思路解决
        Account.demo(new AccountSafeTwo(10000));
    }
}
